-- GENERATED SPELL FOR [Firesworn] --


function spell0_12099(pUnit, Event) --@Eruption,Self--
pUnit:FullCastSpellOnTarget(19497,pUnit)
pUnit:RegisterEvent('Sorts_12099', 650, 1)
end

function spell1_12099(pUnit, Event) --@Massive Eruption,Self--
pUnit:FullCastSpellOnTarget(20483,pUnit)
pUnit:RegisterEvent('Sorts_12099', 550, 1)
end

function Sorts_12099(pUnit, Event)
local choix_sorts_12099 = math.random(0, 1)
if choix_sorts_12099 == 0 then
pUnit:RegisterEvent('spell0_12099', 1, 1)
end
if choix_sorts_12099 == 1 then
pUnit:RegisterEvent('spell1_12099', 1, 1)
end
end

function mob12099_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12099', math.random(1500, 3000), 1)
end

function mob12099_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12099_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12099_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12099, 1, 'mob12099_Action')
RegisterUnitEvent(12099, 2, 'mob12099_Leave')
RegisterUnitEvent(12099, 3, 'mob12099_Kill')
RegisterUnitEvent(12099, 4, 'mob12099_Die')
